package org.neurone.application.impl;

import java.util.List;

import org.neurone.application.ApplicationMgr;
import org.neurone.domain.Application;
import org.neurone.userspace.dao.ApplicationDao;

public class ApplicationMgrImpl implements ApplicationMgr {
	private ApplicationDao applicationDao;
	
	@Override
	public void delete(Long appID) {
		applicationDao.delete(appID);
	}

	@Override
	public List<Application> findAll(int pageSize, int pageIndex) {
		
		return applicationDao.search(null, 0, 0);
	}

	@Override
	public Long newApplication(Application application) {
		return applicationDao.newApplication(application);
	}

}
